package com.xxj.puzzlesheep.core;


import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View.OnClickListener;
import android.view.View.OnCreateContextMenuListener;
import android.view.View.OnFocusChangeListener;
import android.view.View.OnKeyListener;
import android.view.View.OnLongClickListener;
import android.view.View.OnTouchListener;

/**
 * 
 * Copyright 2008 - 2009
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 * 
 * @project loonframework
 * @author chenpeng
 * @email ceponline@yahoo.com.cn
 * @version 0.1.0
 */
public interface ILScreen extends OnTouchListener, OnKeyListener,
		OnClickListener, OnFocusChangeListener, OnCreateContextMenuListener,
		OnLongClickListener {

	public abstract boolean onTouchDown(MotionEvent e);

	public abstract boolean onTouchUp(MotionEvent e);

	public abstract boolean onTouchMove(MotionEvent e);

	public abstract boolean onKeyDown(int keyCode, KeyEvent e);

	public abstract boolean onKeyUp(int keyCode, KeyEvent e);

	public abstract void createUI(LGraphics g);

	public abstract void runTimer(LTimerContext timer);

	public abstract void setScreen(ILScreen screen);

}
